.li1-box{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.li1-box-item{
  overflow: hidden;
  flex: 0 0 48%;
  position: relative;
  /* min-height: 300px; */
  margin-bottom: 40px;
}
.li1-box-item:hover img{
  transform: scale(1);
}
.li1-box-item:hover .boxitem-title{
  bottom:0px;
  opacity: 1;
  transform: scale(1.2);
}
.li1-box-item>img{
  /* width: 100%; */
  height: 100%;
  transform: scale(1.1);
  transition: all .3s ease-in-out;
}
.li1-box-item .boxitem-title{
  position: absolute;
  bottom:-75px;
  left:0px;
  right: 0px;
  height: 75px;
  text-align: center;
  background-color: var(--headerhover);
  color: var(--headerFont);
  transition: all .3s ease-in-out;
  transform: scale(1);
  font-size: 12px;
}
.boxitem-title h6{
  font-size: 12px;
  /* display: inline-block; */
  margin: 15px 0 8px;
}


  /* 手机*/
  @media screen and (max-width: 550px) {
    .li1-box-item{
      flex: auto;
      min-height: auto;
    }
  }
  .ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
  }
  
  .chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
    background: #f8f9ff;
  }
  
  .chat-header svg {
    width: 20px;
    height: 20px;
    stroke: #4a90e2;
  }
  
  .chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8f9ff;
  }
  
  .message {
    display: flex;
    margin: 8px 0;
    width: 100%;
    align-items: flex-start;
  }
  
  .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
  }
  
  .message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #f0f0f0;
  }
  
  .message-content {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 14px;
    display: inline-block;
    width: fit-content;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }
  
  .user-message {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }
  
  .user-message .message-avatar {
    margin-right: 0;
    margin-left: 8px;
  }
  
  .user-message .message-content {
    background-color: #4a90e2;
    color: white;
  }
  
  .ai-message .message-content {
    background-color: white;
    color: #333;
  }
  
  .error-message .message-content {
    background: #fff0f0;
    border: 1px solid #ffcaca;
    color: #d50000;
  }
  
  .loading-message {
    display: flex;
    align-items: flex-start;
  }
  
  .loading-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
  }
  
  .loading-dots {
    display: flex;
  }
  
  .loading-dots span {
    animation: dotPulse 1.4s infinite;
    opacity: 0.3;
    font-size: 16px;
    line-height: 0.5;
  }
  
  @keyframes dotPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }
  
  .chat-input-container {
    display: flex;
    padding: 12px;
    border-top: 1px solid #f0f0f0;
    background: white;
  }
  
  .input-buttons {
    display: flex;
    align-items: center;
    margin-right: 8px;
  }
  
  .voice-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #666;
    transition: background-color 0.2s;
  }
  
  .voice-button:hover {
    background-color: rgba(0,0,0,0.05);
  }
  
  .voice-button svg {
    width: 20px;
    height: 20px;
  }
  
  .chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 8px 12px;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    min-height: 36px;
  }
  
  .chat-input:focus {
    outline: none;
    border-color: #4a90e2;
  }
  
  .send-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #4a90e2;
    margin-left: 8px;
    transition: background-color 0.2s;
  }
  
  .send-button:hover {
    background-color: rgba(74, 144, 226, 0.1);
  }
  
  .send-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
  }
  
  .message {
    opacity: 0;
    transform: translateY(8px);
    animation: messageAppear 0.2s forwards;
  }
  
  @keyframes messageAppear {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .chat-spacing-container {
    margin-top: 30px;
    padding: 0.5rem 1rem;
  }
  
  @media (max-width: 768px) {
    .chat-spacing-container {
      margin-top: 20px;
      padding: 0.5rem;
    }
    
    .message-content {
      max-width: 80%;
      font-size: 13px;
    }
  }

/* 代码块样式 */
.message-content pre {
  background: #f5f5f5;
  border-radius: 5px;
  padding: 10px;
  overflow-x: auto;
  margin: 10px 0;
  font-family: monospace;
  font-size: 13px;
  border: 1px solid #e0e0e0;
}

.message-content code {
  background: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 90%;
  color: #e83e8c;
}

/* 表格样式 */
.message-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}

.message-content th,
.message-content td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.message-content th {
  background-color: #f2f2f2;
  font-weight: bold;
}

/* 列表样式 */
.message-content ul,
.message-content ol {
  margin: 10px 0;
  padding-left: 20px;
}

/* 标题样式 */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4 {
  margin: 15px 0 8px 0;
  font-weight: 600;
  line-height: 1.2;
}

.message-content h1 {
  font-size: 1.6em;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.message-content h2 {
  font-size: 1.4em;
}

.message-content h3 {
  font-size: 1.2em;
}

/* 图片样式 */
.image-gallery {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 8px;
  width: 100%;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: #f5f5f5;
  padding-bottom: 75%; /* 4:3 宽高比 */
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.05);
}

/* 语音动画 */
.voice-animation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 2000;
}

.voice-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.voice-waves span {
  position: absolute;
  border: 2px solid #4a90e2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  animation: ripple 2s infinite;
}

.voice-waves span:nth-child(2) {
  animation-delay: 0.5s;
}

.voice-waves span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes ripple {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* 语音动画记录中状态 */
.voice-button.recording {
  background-color: rgba(231, 76, 60, 0.15);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

/* 通知提示样式 */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  z-index: 3000;
  transition: transform 0.3s ease;
  font-size: 14px;
}

.notification.show {
  transform: translateX(-50%) translateY(0);
}

/* 强化按钮反馈 */
.voice-button:active {
  transform: scale(0.9);
}

.image-button:active {
  transform: scale(0.9);
}

/* 大图查看器样式 */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.image-viewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.image-viewer-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}

.image-viewer-content p {
  margin: 0;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: #333;
  background-color: white;
}

.close-viewer {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.close-viewer:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* 数据库记录显示区域样式 - 美化版 */
.database-records-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin: 20px 0;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s forwards;
  border: 1px solid #eaeaea;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.records-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f2f7ff 100%);
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.records-header h3 {
  margin: 0;
  font-size: 17px;
  color: #333;
  font-weight: 600;
}

.close-records-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-records-btn:hover {
  background-color: rgba(0,0,0,0.05);
  color: #333;
  transform: rotate(90deg);
}

.records-content {
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
}

.table-container {
  margin-bottom: 30px;
  animation: slideIn 0.4s forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.table-container:last-child {
  margin-bottom: 0;
}

.table-title {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #4a90e2;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
}

.table-title:before {
  content: "📦";
  margin-right: 8px;
  font-size: 18px;
}

.records-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
}

.records-table th {
  background-color: #f5f7fa;
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  border-bottom: 2px solid #e8e8e8;
}

.records-table td {
  padding: 10px 15px;
  border-top: 1px solid #eee;
  color: #555;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-table tr:nth-child(even) {
  background-color: #fafafa;
}

.records-table tr:hover {
  background-color: #f0f7ff;
}

.record-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 2px solid white;
}

.record-image:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .records-table {
    display: block;
    overflow-x: auto;
  }
  
  .records-content {
    padding: 15px;
    max-height: 350px;
  }
  
  .table-title {
    font-size: 15px;
  }
  
  .record-image {
    width: 50px;
    height: 50px;
  }
}